import instance from "@/http";

// 获取权限列表
export const  permissionList = ()=>instance.get("/permission/list")


// 获取权限tree列表
export const  permissionTree = ()=>instance.get("/permission/tree")


// 添加或编辑权限信息
export const  addOrUpdatePermission = (formData)=>instance.post("/permission/addOrUpdate",formData)



// 根据权限ID查询权限信息
export const  getPermissionById = (id)=>instance.get("/permission/permissionInfo/"+id)


// 删除权限
export const  deletePermissionById = (id)=>instance.delete("/permission/delete/"+id)

